from django.urls import path
from .viewss.BotResrieveView import BotRetrieveView
from .viewss.BotConversationView import BotConversationView
from .viewss.BotPublishView import BotPublishView
from .viewss.BotCreateView import BotCreateView


urlpatterns = [

    # 智能体相关操作
    path('bots/create/', BotCreateView.as_view(), name='bot-create'),  # 创建智能体
    path('bots/', BotCreateView.as_view(), name='bot-list'),  # 获取所有智能体
    path('bots/<str:bot_id>/', BotRetrieveView.as_view(), name='bot-retrieve'),  # 获取单个智能体
    path('publish/', BotPublishView.as_view(), name='bot-publish'),
    path('conversations/', BotConversationView.as_view(), name='conversation-list-create'),  # 创建对话和获取所有对话（支持查询参数过滤）
    path('conversations/chat/', BotConversationView.as_view(), name='conversation-chat'),  # 添加前端调用的聊天路径

]